﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RL.SMR.Controls
{
    public partial class UserAuthentication : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SMRSession smrsession = new SMRSession();

            if (smrsession.User == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            else
            {

                lblUserName.Text = smrsession.User.FirstName + " " + smrsession.User.LastName;
            }

        }
    }
}